import { Component } from 'vue'

/**
 * 
 * @param path 路径
 * @param name 路径名称
 * @param component 路由组件
 * @param title meta名称
 * @param keepAlive 是否缓存
 */
export function routerInit(path: string, name: string, component: Component, title: string, keepAlive: boolean = false) {
  return { path, name, component, meta: { title, keepAlive } }
}